<?php
use yii\helpers\Url;
use yii\helpers\Html;
use yii\widgets\LinkPager;
use yii\bootstrap\ActiveForm;
?>
<link rel="stylesheet" type="text/css" href="/assets/css/youwenbida.css"/>
<link rel="stylesheet" type="text/css" href="/assets/css/public1.css"/>
<div class="main">
<div class="left">
    	<h2>
            <span class="ques"><a href="<?= Url::to(['questions/index'])?>">问答</a></span>
            <span class="release"><a href="<?= Url::to(['questions/release'])?>">发布问题</a></span>
        </h2>
        <p>
            <a href="<?= Url::to(['questions/index'])?>?action=new">最新</a>
            <a href="<?= Url::to(['questions/index'])?>?action=hot">最热</a>
            <a href="<?= Url::to(['questions/waiting'])?>?action=wait">等待回复</a>
            <a href="<?= Url::to(['questions/course'])?>?action=course">课程问答</a>
        </p>
		<!-- 开始 -->
      <?php $form = ActiveForm::begin(['options' => [ 'enctype' => 'multipart/form-data' ],'action' => ['operate/doartadd'],'method'=>'post',]); ?>
  <div class="row">
    <div class="col-md-8">
      <div class="form-group">
          <label for="article-title-field" class="control-label">资讯标题</label>
          <div class="controls">
            <input class="form-control" id="article-title-field" type="text" name="article_title" value="">
          </div>
      </div>
      
      <div class="form-group">
        <label for="richeditor-body-field" class="control-label">正文</label>
        <div class="controls">
          <textarea class="form-control" id="richeditor-body-field" rows="16" name="article_contents"
            
           ></textarea>
        </div>
      </div>

      <div class="form-group">
            <form action="">
            <table id="label">
            <tr>
              <td width="80" valign="top" class="marginTop7" ><span>标签：</span></td>
            </tr>
              <tr>
                <td width="80">
                  <div class="biaoqian_k edit_biaoqian_k">
                    <ul>
                       
                    </ul>
                  </div>
                </td>
              </tr>
              <tr>
                <td>
                  <div class="add_biaoqian_r">
                    <ol>
                     
                        <li><p><i name="">+</i><b>123</b></p></li>
                     
                        
                    </ol>
                  
                  </div>
                </td>
              </tr>
            </table>
          </form>
      </div>

    
    </div>  

    <div class="form-group">
        <?= Html::submitButton('添加', ['class' => 'btn btn-primary']) ?>
    </div>           
<?php ActiveForm::end(); ?>
       <!--  结束 -->
    </div>
   
    <div class="right">
    	<div class="right1">
        <h4>注意！</h4>
            <?php foreach ($notice as $key => $no) {?>
            <p><?php echo $key+1;?>、<?php echo $no['config_value']?><br/><br/></p>
            <?php }?>
        </div>
    
    </div>

</div>